package com.decoration.basic.mapper;


import com.decoration.basic.entity.*;
import com.decoration.basic.findCondition.DecFlowFindCondition;
import com.decoration.basic.findCondition.DecPhaseFindCondition;

import java.util.List;

//@Repository
//@Mapper
public interface DecCtctionFlowMapper {


    //获取流程模板列表
    List<DecPhaseBase> findTempleList();

    //获取阶段名称列表
    List<DecPhaseBase> phaselist();
    //获取师傅名称列表
    List<DecPhaseBase> masterTempleList();
    //获取师傅工地类型列表
    List<DecPhaseBase> findMasterTypeList();

    //新增关联流程项目信息
    int updatePhaseInf(DecPhaseInf vo);
    int insertMasterlist(PhaseUsers users);
    DecPhaseInf searchPhaseInf(String phaseId);

    List<DecFlowFindCondition> findAllTemple(DecFlowFindCondition findCondition);

    int delete(String flowId);

    int update(DecFlowInf decFlowInf);

    int add(DecFlowInf decFlowInf);

    DecFlowFindCondition findFlowInfById(DecFlowFindCondition findCondition);
    DecFlowFindCondition findFlowById(String flowId);

    Integer getDecFlowInfSize();
    Integer getDecFlowInfLength(String flowId);

    List<DecFlowFindCondition> findAll(DecFlowFindCondition decFlowFindCondition);

    //获取阶段审批页面
    List<DecPhaseInf> getRelFlowPhaselist(DecPhaseFindCondition findCondition);
    int delPhase(String flowId);
}